﻿using System;
class StrArrayQuickSort
{
    static void Main()
    {
        int lenght;

        Console.Write("please enter the lenght of array: ");
        while (true)
        {
            try
            {
                lenght = int.Parse(Console.ReadLine());
                break;
            }
            catch (Exception)
            {
                Console.Write("Please re-enter lenght:");
            }
        }


        string[] theArray;
        theArray = new string[lenght];

        for (int i = 0; i < lenght; i++)
        {
            theArray[i] = Console.ReadLine();
        }
        Console.ReadLine();
    }
}

